package edu.zut.cs.software.example.space.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import edu.zut.cs.software.example.service.GenericManager;
import edu.zut.cs.software.example.space.domain.Space;
/**
 * 
 * @author ma jiang tao
 *
 */
public interface SpaceManager extends GenericManager<Space,Long> {

	//Space echo(Space space);
	
	/**
	 * 
	 * @param studentid
	 * @param pagenum
	 * @param pageSize
	 * @return
	 */
	List<Space> findByStudentId(Long studentid,int pagenum,int pageSize);
	
	/**
	 * 
	 * @return
	 */
	int getSpaceByStudentIdCounts(Long studentid);
	
	/**
	 * 
	 * @param message
	 * @return
	 */
	int getSpaceBymessageCounts(String message);
	
	/**
	 * 
	 * @param message
	 * @param pagenum
	 * @param pageSize
	 * @return
	 */
	List<Space> findBymessage(String message,int pagenum,int pageSize);
	
	/**
	 * 
	 * @param id
	 * @return
	 */
	int deleteById(int id);
	
	/**
	 * 
	 * @param id
	 * @return
	 */
	public Space getUpdateSpaService(int id);
	
	/**
	 * 
	 * @param space
	 * @return
	 */
	public int editspace(Space space);
}
